Optimal. Leaf size=6 \[ x-\sin (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.070243, antiderivative size = 6, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4392, 2682, 8} \[ x-\sin (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4392
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\sin (x)}{\cot (x)+\csc (x)} \, dx &=\int \frac{\sin ^2(x)}{1+\cos (x)} \, dx\\ &=-\sin (x)+\int 1 \, dx\\ &=x-\sin (x)\\ \end{align*}
Mathematica [B] time = 0.0074676, size = 14, normalized size = 2.33 \[ 2 \left (\frac{x}{2}-\frac{\sin (x)}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.083, size = 19, normalized size = 3.2 \begin{align*} -2\,{\frac{\tan \left ( x/2 \right ) }{ \left ( \tan \left ( x/2 \right ) \right ) ^{2}+1}}+x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.66621, size = 51, normalized size = 8.5 \begin{align*} -\frac{2 \, \sin \left (x\right )}{{\left (\frac{\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1\right )}{\left (\cos \left (x\right ) + 1\right )}} + 2 \, \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.465335, size = 16, normalized size = 2.67 \begin{align*} x - \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin{\left (x \right )}}{\cot{\left (x \right )} + \csc{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.0958, size = 24, normalized size = 4. \begin{align*} x - \frac{2 \, \tan \left (\frac{1}{2} \, x\right )}{\tan \left (\frac{1}{2} \, x\right )^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]